// 老图标
@import "https://at.alicdn.com/t/c/font_2712500_jd8i8ai7b8k.css";

// 官方图标
@import "https://at.alicdn.com/t/c/font_4441878_29ep8jtwh2k.css";

// 后台图标
@import "https://at.alicdn.com/t/c/font_4375017_fgjusi2ok56.css";

// 移动端图标
@import "https://at.alicdn.com/t/c/font_4483982_yjn36f1byz.css";

:root {
    --tig-primary: #1456f0;
    --tig-text-hover: #336df4;
    --tig-primary-light-3: #336df4;
    --tig-primary-color: #1456f0;
    --tig-red-text-color: #f23030;

    --el-color-primary: var(--tig-primary);
    --el-color-primary-light-3: var(--tig-primary-light-3);
    --el-button-hover-border-color: var(--tig-primary);
}
.ant-drawer-content-wrapper {
    max-width: 100%;
}

html {
    color: #555;
    font-size: 12px;
    font-family: Helvetica, Arial, sans-serif;
    text-align: left;
    background: #fff;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
}

body {
    line-height: 1;
    margin: 0;
    color: rgba(0, 0, 0, 0.85);
    font-size: 12px;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        segoe ui,
        Roboto,
        helvetica neue,
        Arial,
        noto sans,
        sans-serif,
        apple color emoji,
        segoe ui emoji,
        segoe ui symbol,
        noto color emoji;
    font-variant: tabular-nums;
    background-color: #fff;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}
em {
    font-style: normal;
}

html,
body,
#app,
#root {
    height: 100%;
}

.colorWeak {
    filter: invert(80%);
}

.ant-layout.layout-basic {
    height: 100vh;
    min-height: 100vh;
}

canvas {
    display: block;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;
}
a:hover {
    color: var(--tig-text-hover);
}
ul,
ol {
    list-style: none;
    padding: 0;
}

td {
    vertical-align: middle;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-justify-between {
    justify-content: space-between;
}

/* 左右结构 */
.flex-justify-center {
    justify-content: center;
}

/* x居中 */
.flex-align-center {
    align-items: center;
}

.nowarp {
    white-space: nowrap;
}

/* 垂直y居中 */

.iconfont,
.ico-font {
    font-family: "admin-iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.iconfont-admin {
    font-family: "iconfont-admin" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--tig-primary);
    text-decoration: none;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    transition: color 0.3s;
    -webkit-text-decoration-skip: objects;
}

.f12 {
    font-size: 12px;
}

.f14 {
    font-size: 14px;
}
.cursor-pointer {
    cursor: pointer;
}
//英文小写变大写
.text-transform {
    text-transform: uppercase;
}
.dollar,
.decimal,
.price_format {
    font-weight: normal;
}

.dollar {
    font-size: 80%;
    padding-right: 2px;
}

.green {
    color: #31c19e;
}

.yellow {
    color: #ed6a0c;
}

.gray {
    color: #999;
}

.red {
    color: var(--tig-red-text-color);
}

.mr10 {
    margin-right: 10px;
}

.ml10 {
    margin-left: 10px;
}

.mt10 {
    margin-top: 10px;
}

.mb10 {
    margin-bottom: 10px;
}
.mb20 {
    margin-bottom: 20px;
}

.btn-link {
    white-space: nowrap;
    cursor: pointer;
    color: var(--tig-primary);
}

.content_wrapper {
    padding: 20px;
}

.ant-pagination-item-link {
    border: 0 !important;
    background: none !important;
}

.ant-pagination-mini li {
    margin: 0 2px !important;
}

.ant-pagination-mini li:hover {
    border-color: #fff !important;
    background-color: inherit !important;
}

.ant-pagination-mini li.ant-pagination-item-active:hover {
    border-color: var(--tig-primary) !important;
}

.lyecs-modal-gallery .ant-modal-body {
    padding: 0;
}

button .iconfont {
    vertical-align: middle;
    line-height: 0.8;
}

// 空数据
.empty-warp {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.empty-warp .empty-bg {
    text-align: center;
    font-size: 14px;
    display: block;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
    color: #999;
}

.empty-warp .empty-bg::before {
    content: "";
    height: 150px;
    background: url("./images/common/empty-bg.png") center center;
    background-size: 160px 160px;
    background-repeat: no-repeat;
    width: 100%;
    display: block;
}

.table-container .empty-warp {
    min-height: 500px;
}

// 表单样式
.ant-form-item-extra {
    padding-top: 3px;
}

// 关闭图片预览时小图的mask
.ant-image .ant-image-mask {
    display: none;
}

// 下拉宽度不再固定
.ant-select-dropdown {
    width: auto !important;
}

// 图片预览加上白底
.ant-image-preview-operations {
    background: none !important;
}

.ant-image-preview-img {
    background-color: #fff;
    padding: 20px;
}

.ant-popconfirm-message {
    font-size: 12px;
}

.lyecs-tabs .ant-tabs-tab-btn {
    font-size: 14px;
    font-weight: bold;
}

// 弹窗样式
.ant-modal {
    max-height: 90%;
}

.ant-drawer-content.noPadding .ant-drawer-body {
    padding: 0;
}

.ant-modal.noPadding .ant-modal-body {
    padding: 0;
}

.ant-drawer-body .content_wrapper {
    padding: 0;
}

body .el-drawer__header {
    border-bottom: 1px solid rgba(5, 5, 5, 0.06);
    padding: 16px 24px;
    margin: 0;
}

body .el-drawer__title {
    font-size: 16px;
    color: #333;
}

body .el-drawer__footer {
    padding: 8px 16px;
    border-top: 1px solid rgba(5, 5, 5, 0.06);
}

.ant-modal-body .content_wrapper {
    padding: 0;
}

// element样式重做
body {
    .el-button {
        transition:
            color 0.1s ease-in,
            background-color 0.1s ease-in,
            border-color 0.1s ease-in,
            width 0.2s ease-in;
    }
    .el-image-viewer__canvas img {
        background-color: #fff;
        padding: 20px;
    }

    .el-dropdown-menu__item {
        transition: all 0.2s;
    }

    .el-dropdown-menu__item:not(.is-disabled):focus {
        background: rgba(0, 0, 0, 0.04);
        color: inherit;
    }

    .brand-select .el-select-dropdown__wrap,
    .brand-select {
        max-height: 590px !important;
        height: 320px;
    }

    .el-table {
        font-size: 12px;
    }

    .el-table .caret-wrapper {
        margin-left: 3px;
    }

    .el-table .sort-caret {
        border: solid 4px transparent;
    }

    .el-table .sort-caret.ascending {
        top: -4px;
    }

    .el-table .sort-caret.descending {
        bottom: -1px;
    }

    .el-tabs__item {
        font-size: 14px;
        font-weight: 500;
    }

    .el-tabs__nav-wrap::after {
        height: 1px;
    }

    .noPadding .el-dialog__body {
        padding: 0;
    }

    .el-dialog__header {
        border-bottom: 1px solid #eee;
        margin-right: 0;
        padding: 14px 20px;
    }

    .el-dialog__headerbtn {
        top: 0;
    }

    .el-dialog__footer {
        border-top: 1px solid #eee;
        padding: 10px 20px;
    }

    .el-form-item {
        margin-bottom: 24px;
    }

    .el-radio {
        font-weight: inherit;
    }

    .el-color-picker__color {
        border: 0px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
    }

    .el-color-picker .el-color-picker__empty {
        display: none;
    }

    // select
    .el-select__wrapper {
        font-size: 12px;
    }
    .el-select {
        min-width: 160px;
    }
    .el-select__popper.el-popper {
        border: none;
        margin-top: -8px;
        margin-bottom: -8px;
        box-shadow:
            0 6px 16px 0 rgba(0, 0, 0, 0.08),
            0 3px 6px -4px rgba(0, 0, 0, 0.12),
            0 9px 28px 8px rgba(0, 0, 0, 0.05);
    }

    .el-select__popper .el-select-dropdown {
        padding: 4px;
        box-sizing: border-box;
    }

    .el-select__popper .el-select-dropdown__list {
        margin: 0 !important;
    }

    .el-select__popper .el-tree-node__content:hover {
        border-radius: 2px;
    }

    .el-select__popper .el-tree-node__content {
        padding: 3px 0;
        transition: background 0.3s ease;
    }

    .el-select__popper .is-current > .el-tree-node__content {
        background-color: #e6f7ff;
    }

    .el-select-dropdown__item.selected {
        color: rgba(0, 0, 0, 0.88);
        font-weight: normal;
    }

    .el-select__popper .el-popper__arrow {
        display: none;
    }

    .el-form-item__content {
        font-size: 12px;
    }
    // cascader联动选择样式

    .el-cascader .el-input__icon {
        width: 15px;
    }

    .el-cascader__dropdown.el-popper {
        border: 0 !important;
    }

    .el-cascader__dropdown.el-popper .el-popper__arrow::before {
        border-color: #fff !important;
    }

    .el-cascader-menu__wrap.el-scrollbar__wrap {
        height: 252px !important;
    }

    .el-radio__inner {
        width: 16px;
        height: 16px;
        border-color: #d9d9d9;
        border-style: solid;
        border-width: 1px;
        border-radius: 50%;
        transition: all 0.3s;
        background: #fff;
    }

    .el-radio__inner::after {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 16px;
        height: 16px;
        margin-top: -8px;
        margin-left: -8px;
        background-color: var(--tig-primary);
        border-top: 0;
        border-left: 0;
        border-radius: 16px;
        transform: scale(0);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
        content: " ";
    }

    .el-radio__input.is-checked .el-radio__inner {
        border-color: var(--tig-primary);
        background: #fff;
    }

    .el-radio__input.is-checked .el-radio__inner::after {
        transform: scale(0.5);
        opacity: 1;
        transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
    }

    .el-radio__input.is-checked + .el-radio__label {
        color: inherit;
    }
    .el-checkbox {
        --el-checkbox-input-height: 16px;
        --el-checkbox-input-width: 16px;
    }
    .el-checkbox__inner {
        border-radius: 6px;
    }
    .el-checkbox__inner::after {
        left: 4.5px;
        top: 1.5px;
        border-width: 2px;
    }
    .el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
        top: 6px;
    }
    .el-checkbox__input.is-checked + .el-checkbox__label {
        color: inherit;
    }

    // tips
    .el-popper.is-light {
        box-shadow:
            0 6px 16px 0 rgba(0, 0, 0, 0.08),
            0 3px 6px -4px rgba(0, 0, 0, 0.12),
            0 9px 28px 8px rgba(0, 0, 0, 0.05);
        border: 0;
    }

    .el-popper.is-light .el-popper__arrow::before {
        border: 0;
    }

    // slider
    .el-slider__runway {
        height: 4px;
    }

    .el-slider__bar {
        height: 4px;
    }

    .el-slider__button {
        width: 14px;
        height: 14px;
    }

    .el-slider__input {
        width: 60px;
    }

    .el-slider__button-wrapper {
        top: -16px;
    }
}

// 分页
.pagination-con {
    margin: 16px 0;
    display: flex;
    justify-content: right;
}

// 表单
body .el-tabs__content {
    overflow: visible;
}

.lyecs-form-table .el-tabs__content {
    padding-top: 20px;
    padding-bottom: 20px;
}

.el-form-item .extra {
    font-size: 12px;
    color: #999;
    line-height: 20px;
    padding-top: 3px;
}

.el-form-item .extra::before {
    content: "";
    flex-basis: 100%;
}

// 编辑器
.w-e-bar-divider {
    display: none !important;
}

// 提醒
.notice-warp {
    background-color: #eef2ff;
    border-radius: 9px;
    padding: 15px;
    margin-bottom: 20px;
    line-height: 24px;
    white-space: normal;
}

.error-notice-warp {
    color: #ff2200;
    background-color: #feeeee;
    padding: 15px;
    margin-bottom: 20px;
    line-height: 26px;
    white-space: normal;
}

@media only screen and (max-width: 767px) {
    .el-form-item__label {
        max-width: 92px;
        text-align: right;
        line-height: 16px;
        padding-top: 7px;
    }
    .main-panel ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .filtrate-menu {
        flex-wrap: wrap;
        .asterisk-left {
            width: 100%;
        }
    }
    .ant-drawer .ant-drawer-body {
        padding: 20px;
    }
}

.shop_admin {
    .page-grid-content {
        > .container {
            padding: 15px 20px 20px 20px;
            box-sizing: border-box;
            > .content_wrapper {
                background-color: #fff;
            }
        }
    }
}
